Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
63b69f4
alpha sort the includes in group2
Jan 7, 2013
bc00c8c
alpha sort includes
Jan 7, 2013
2195a85
alpha sort includes
Jan 7, 2013
9973658
alpha sort includes
Jan 7, 2013
e25dc05
alpha sort includes
Jan 7, 2013
e95491a
alpha sort includes
Jan 7, 2013
1191eda
alpha sort includes
Jan 7, 2013
c742ec2
fix BREATHING TEST 'Testing:' label
Jan 7, 2013
eaf87af
correct the 'Testing:' label to match the Test Plan Checklist
Jan 7, 2013
441e726
alter 'Testing:' label targets to match case of Test Plan Checklist
Jan 7, 2013
35b7e25
In case 1, alter 'Testing:' label target to match the Test Plan Check…
Jan 7, 2013
63f0448
make the 'Testing:' label and Test Plan Checklist match.
Jan 7, 2013
b687eda
Fixed a number of 'Testing:' labels so they match the Test Plan check…
Jan 8, 2013
e9d5e5e
make CASE 4 'Testing:' label targets match Test Plan checklist
Jan 8, 2013
38faa4e
make CASE 3 'Testing:' label targets match the Test Plan checklist
Jan 8, 2013
33d0cc6
make 'Testing:' target match Test Plan checklist exactly
Jan 8, 2013
cfc8aa0
make all 'Testing:' label targets in testCaseNN functions also match …
Jan 8, 2013
cb4aba8
Make 'Testing:' label target match Test Plan Checklist
Jan 8, 2013
747bbab
Make 'Testing:' labels match Test Plan checklist
Jan 8, 2013
7c983ca
Add Below the Line checklist item [22] CONCERN: Vector support types …
Jan 8, 2013
6741e77
replace tabs with 8 spaces
Jan 8, 2013
17d4507
replace tabs with 8 spaces
Jan 8, 2013
eb41c3f
List of files we are focused on remediating
Jan 8, 2013
5394dc4
Added overview. Exhaustive and area tests have not been implemented i…
Jan 8, 2013
017d16a
Merge branch 'master' of https://github.com/weiyeh/bsl
Jan 8, 2013
d8aea48
Update Overview making it more explicit as to how the process applies…
Jan 8, 2013
537c0a2
make 'Testing:' label targets match the Test Plan checklist letter fo…
Jan 8, 2013
025bb21
update all 'Testing:' label targets in switch to match Test Plan chec…
Jan 8, 2013
52b4b3d
update all testCase functions' 'Testing:' labels to match the Test Pl…
Jan 8, 2013
91b9e1f
substituting inline defined macros to standard macros
Jan 8, 2013
6096ec0
substituting inline defined macros with standard macros in header files
Jan 8, 2013
78c6ef4
substituting inline defined macros with standard macros in header files
Jan 9, 2013
743522f
substituting inline defined macros with standard macros in header files
Jan 9, 2013
34074a8
add cstdio so it will build
Jan 9, 2013
3fcadeb
substituting inline defined macros with standard macros in header files
Jan 9, 2013
f301b16
substituting inline defined macros with standard macros in header files
Jan 9, 2013
f0584c9
Merge branch 'master' of https://github.com/weiyeh/bsl.git
Jan 9, 2013
2553262
substituting inline defined macros with standard macros in header files
Jan 9, 2013
b20fd01
substituting inline defined macros with standard macros in header files
Jan 9, 2013
b15a635
adding only 1 empty line
Jan 9, 2013
cb7d941
substituting inline defined macros with standard macros in header files
Jan 9, 2013
6884028
remove inserted by dan's visual studio
Jan 9, 2013
28f0b76
remove 's inserted by dan's visual studio
Jan 9, 2013
bf11d7a
remove extra blank line
Jan 9, 2013
4f3e1d4
remove windows newlines
Jan 9, 2013
62cabea
remove windows newlines
Jan 9, 2013
08de649
remove windoze newlines
Jan 9, 2013
a8bc288
remove windoze newlines
Jan 9, 2013
2209ca1
remove windows newlinese
Jan 9, 2013
3e6ab7b
only adding one line
Jan 9, 2013
aa9adc6
Merge branch 'submissions' of https://github.com/weiyeh/bsl.git into …
Jan 15, 2013
b70f998
solved 11 reload problems
Jan 15, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions groups/bsl/bslalg/bslalg_arraydestructionprimitives.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <bslma_default.h> // for testing only
#include <bslma_testallocator.h> // for testing only
#include <bsls_alignmentutil.h> // for testing only
#include <bsls_bsltestutil.h>
#include <bsls_objectbuffer.h> // for testing only
#include <bsls_assert.h> // for testing only
#include <bsls_asserttest.h> // for testing only
Expand Down
68 changes: 29 additions & 39 deletions groups/bsl/bslalg/bslalg_rangecompare.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

#include <bslalg_rangecompare.h>

#include <bslmf_isbitwiseequalitycomparable.h> // for testing only
#include <bslma_usesbslmaallocator.h> // for testing only
#include <bslmf_nestedtraitdeclaration.h> // for testing only
#include <bsls_bsltestutil.h> // for testing only

#include <bslma_allocator.h>
#include <bslma_default.h>
#include <bslma_testallocator.h>

#include <bslma_usesbslmaallocator.h> // for testing only
#include <bslmf_isbitwiseequalitycomparable.h> // for testing only
#include <bslmf_nestedtraitdeclaration.h> // for testing only
#include <bsls_bsltestutil.h> // for testing only
#include <bsls_stopwatch.h>
#include <bsls_types.h>

Expand Down Expand Up @@ -47,8 +45,11 @@ using namespace std;
// overloads, we wrap the range pointers into an iterator type that is *not*
// convertible to the pointer.
//-----------------------------------------------------------------------------
// [ 3] bool equal(start1, end1, start2);
// [ 3] bool equal(start1, end1, start2, end2);
// [ 3] bool equal(start1, end1, length1, start2, end2, length2);
// [ 4] bool lexicographical(start1, end1, length1, start2, end2, length2);
// [ 4] bool lexicographical(start1, end1, start2, end2);
// [ 4] bool lexicographical(s1, end1, length1, s2, end2, length2);
//-----------------------------------------------------------------------------
// [ 1] BREATHING TEST
// [ 2] TEST APPARATUS
Expand All @@ -73,37 +74,26 @@ void aSsErT(int c, const char *s, int i)

} // close unnamed namespace

# define ASSERT(X) { aSsErT(!(X), #X, __LINE__); }

//=============================================================================
// STANDARD BDE LOOP-ASSERT TEST MACROS
// STANDARD BDE TEST DRIVER MACROS
//-----------------------------------------------------------------------------
// NOTE: This implementation of LOOP_ASSERT macros must use printf since
// cout uses new and must not be called during exception testing.

#define LOOP_ASSERT(I,X) { \
if (!(X)) { printf("%s", #I ": "); dbg_print(I); printf("\n"); \
fflush(stdout); aSsErT(1, #X, __LINE__); } }

#define LOOP2_ASSERT(I,J,X) { \
if (!(X)) { printf("%s", #I ": "); dbg_print(I); printf("\t"); \
printf("%s", #J ": "); dbg_print(J); printf("\n"); \
fflush(stdout); aSsErT(1, #X, __LINE__); } }

#define LOOP3_ASSERT(I,J,K,X) { \
if (!(X)) { printf("%s", #I ": "); dbg_print(I); printf("\t"); \
printf("%s", #J ": "); dbg_print(J); printf("\t"); \
printf("%s", #K ": "); dbg_print(K); printf("\n"); \
fflush(stdout); aSsErT(1, #X, __LINE__); } }

//=============================================================================
// SEMI-STANDARD TEST OUTPUT MACROS
//-----------------------------------------------------------------------------
#define Q(X) printf("<| " #X " |>\n"); // Quote identifier literally.
#define P(X) dbg_print(#X " = ", X, "\n") // Print identifier and value.
#define P_(X) dbg_print(#X " = ", X, ", ") // P(X) without '\n'
#define L_ __LINE__ // current Line number
#define T_ putchar('\t'); // Print a tab (w/o newline).
#define ASSERT BSLS_BSLTESTUTIL_ASSERT
#define LOOP_ASSERT BSLS_BSLTESTUTIL_LOOP_ASSERT
#define LOOP0_ASSERT BSLS_BSLTESTUTIL_LOOP0_ASSERT
#define LOOP1_ASSERT BSLS_BSLTESTUTIL_LOOP1_ASSERT
#define LOOP2_ASSERT BSLS_BSLTESTUTIL_LOOP2_ASSERT
#define LOOP3_ASSERT BSLS_BSLTESTUTIL_LOOP3_ASSERT
#define LOOP4_ASSERT BSLS_BSLTESTUTIL_LOOP4_ASSERT
#define LOOP5_ASSERT BSLS_BSLTESTUTIL_LOOP5_ASSERT
#define LOOP6_ASSERT BSLS_BSLTESTUTIL_LOOP6_ASSERT
#define ASSERTV BSLS_BSLTESTUTIL_ASSERTV

#define Q BSLS_BSLTESTUTIL_Q // Quote identifier literally.
#define P BSLS_BSLTESTUTIL_P // Print identifier and value.
#define P_ BSLS_BSLTESTUTIL_P_ // P(X) without '\n'.
#define T_ BSLS_BSLTESTUTIL_T_ // Print a tab (w/o newline).
#define L_ BSLS_BSLTESTUTIL_L_ // current Line number

//=============================================================================
// GLOBAL HELPER FUNCTIONS FOR TESTING
Expand Down Expand Up @@ -2151,7 +2141,7 @@ int main(int argc, char *argv[])
//
// Testing:
// bool lexicographical(start1, end1, start2, end2);
// bool lexicographical(start1, end1, length1, start2, end2, length2);
// bool lexicographical(s1, end1, length1, s2, end2, length2);
// --------------------------------------------------------------------

if (verbose) printf("\nTESTING 'lexicographical'"
Expand Down Expand Up @@ -2364,8 +2354,7 @@ int main(int argc, char *argv[])
// the first invalid value of the 'spec'.
//
// Testing:
// int ggg(TYPE *array, const char *spec, int verboseFlag = 1);
// TYPE& gg(TYPE *array, const char *spec);
// TEST APPARATUS
// --------------------------------------------------------------------

if (verbose) printf("\nTESTING PRIMITIVE GENERATOR FUNCTIONS"
Expand Down Expand Up @@ -2395,7 +2384,7 @@ int main(int argc, char *argv[])
// Exercise basic usage of this component.
//
// Testing:
// This test exercises basic usage but *tests* nothing.
// BREATHING TEST
// --------------------------------------------------------------------

if (verbose) printf("\nBREATHING TEST"
Expand Down Expand Up @@ -2497,6 +2486,7 @@ int main(int argc, char *argv[])
// can be used. Display the resulting times.
//
// Testing:
// PERFORMANCE TEST
// --------------------------------------------------------------------

if (verbose) printf("\nPERFORMANCE TEST"
Expand Down
52 changes: 22 additions & 30 deletions groups/bsl/bslalg/bslalg_scalardestructionprimitives.t.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// bslalg_scalardestructionprimitives.t.cpp -*-C++-*-

#include <bslalg_scalardestructionprimitives.h>

#include <bslalg_scalarprimitives.h> // for testing only
#include <bslma_usesbslmaallocator.h> // for testing only
#include <bslmf_istriviallycopyable.h> // for testing only

#include <bslma_allocator.h> // for testing only
#include <bslma_default.h> // for testing only
#include <bslma_testallocator.h> // for testing only
#include <bslma_usesbslmaallocator.h> // for testing only
#include <bslmf_istriviallycopyable.h> // for testing only
#include <bsls_alignmentutil.h> // for testing only
#include <bsls_assert.h> // for testing only
#include <bsls_asserttest.h> // for testing only
#include <bsls_bsltestutil.h>
#include <bsls_objectbuffer.h> // for testing only
#include <bsls_types.h> // for testing only

Expand Down Expand Up @@ -42,7 +42,6 @@ using namespace BloombergLP;
// [ 2] void destroy(T *dst);
//-----------------------------------------------------------------------------
// [ 1] BREATHING TEST

//=============================================================================
// STANDARD BDE ASSERT TEST MACRO
//-----------------------------------------------------------------------------
Expand All @@ -61,34 +60,27 @@ void aSsErT(int c, const char *s, int i)
} // close unnamed namespace

# define ASSERT(X) { aSsErT(!(X), #X, __LINE__); }
//=============================================================================
// STANDARD BDE LOOP-ASSERT TEST MACROS
//-----------------------------------------------------------------------------
// NOTE: This implementation of LOOP_ASSERT macros must use printf since
// cout uses new and be called during exception testing.
#define LOOP_ASSERT(I,X) { \
if (!(X)) { printf("%s: %d\n", #I, I); aSsErT(1, #X, __LINE__); } }

#define LOOP2_ASSERT(I,J,X) { \
if (!(X)) { printf("%s: %d\t%s: %d\n", #I, I, #J, J); \
aSsErT(1, #X, __LINE__); } }

#define LOOP3_ASSERT(I,J,K,X) { \
if (!(X)) { printf("%s: %d\t%s: %c\t%s: %c\n", #I, I, #J, J, #K, K); \
aSsErT(1, #X, __LINE__); } }

#define LOOP4_ASSERT(I,J,K,L,X) { \
if (!(X)) { printf("%s: %d\t%s: %d\t%s: %d\t%s: %d\n", \
#I, I, #J, J, #K, K, #L, L); aSsErT(1, #X, __LINE__); } }

//=============================================================================
// SEMI-STANDARD TEST OUTPUT MACROS
// STANDARD BDE TEST DRIVER MACROS
//-----------------------------------------------------------------------------
// #define P(X) cout << #X " = " << (X) << endl; // Print identifier and value.
#define Q(X) printf("<| " #X " |>\n"); // Quote identifier literally.
//#define P_(X) cout << #X " = " << (X) << ", " << flush; // P(X) without '\n'
#define L_ __LINE__ // current Line number
#define T_ printf("\t"); // Print a tab (w/o newline)

#define ASSERT BSLS_BSLTESTUTIL_ASSERT
#define LOOP_ASSERT BSLS_BSLTESTUTIL_LOOP_ASSERT
#define LOOP0_ASSERT BSLS_BSLTESTUTIL_LOOP0_ASSERT
#define LOOP1_ASSERT BSLS_BSLTESTUTIL_LOOP1_ASSERT
#define LOOP2_ASSERT BSLS_BSLTESTUTIL_LOOP2_ASSERT
#define LOOP3_ASSERT BSLS_BSLTESTUTIL_LOOP3_ASSERT
#define LOOP4_ASSERT BSLS_BSLTESTUTIL_LOOP4_ASSERT
#define LOOP5_ASSERT BSLS_BSLTESTUTIL_LOOP5_ASSERT
#define LOOP6_ASSERT BSLS_BSLTESTUTIL_LOOP6_ASSERT
#define ASSERTV BSLS_BSLTESTUTIL_ASSERTV

#define Q BSLS_BSLTESTUTIL_Q // Quote identifier literally.
#define P BSLS_BSLTESTUTIL_P // Print identifier and value.
#define P_ BSLS_BSLTESTUTIL_P_ // P(X) without '\n'.
#define T_ BSLS_BSLTESTUTIL_T_ // Print a tab (w/o newline).
#define L_ BSLS_BSLTESTUTIL_L_ // current Line number

//=============================================================================
// SEMI-STANDARD NEGATIVE-TESTING MACROS
Expand Down Expand Up @@ -773,7 +765,7 @@ int main(int argc, char *argv[])
//: them. Make sure all memory is deallocated.
//
// Testing:
// This test exercises the component but tests nothing.
// BREATHING TEST
// --------------------------------------------------------------------

if (verbose) printf("\nBREATHING TEST"
Expand Down
37 changes: 25 additions & 12 deletions groups/bsl/bsls/bsls_alignedbuffer.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <bsls_alignedbuffer.h>

#include <bsls_alignmenttotype.h>
#include <bsls_alignmentfromtype.h>
#include <bsls_alignmenttotype.h>
#include <bsls_alignmentutil.h>

#include <bsls_bsltestutil.h>
#include <cstdio>
#include <cstdlib>

Expand Down Expand Up @@ -36,24 +36,37 @@ using namespace std;
// FUNCTIONS, INCLUDING IOSTREAMS.
static int testStatus = 0;

static void aSsErT(int c, const char *s, int i) {
namespace {
void aSsErT(int c, const char *s, int i)
{
if (c) {
printf("Error " __FILE__ "(%d): %s (failed)\n", i, s);
if (testStatus >= 0 && testStatus <= 100) ++testStatus;
}
}

# define ASSERT(X) { aSsErT(!(X), #X, __LINE__); }
//--------------------------------------------------------------------------
} // close unnamed namespace

//=============================================================================
// SEMI-STANDARD TEST OUTPUT MACROS
// STANDARD BDE TEST DRIVER MACROS
//-----------------------------------------------------------------------------
// #define P(X) cout << #X " = " << (X) << endl; // Print identifier and value.
#define Q(X) printf("<| " #X " |>\n"); // Quote identifier literally.
//#define P_(X) cout << #X " = " << (X) << ", " << flush; // P(X) without '\n'
#define L_ __LINE__ // current Line number
#define T_ printf("\t"); // Print a tab (w/o newline)

#define ASSERT BSLS_BSLTESTUTIL_ASSERT
#define LOOP_ASSERT BSLS_BSLTESTUTIL_LOOP_ASSERT
#define LOOP0_ASSERT BSLS_BSLTESTUTIL_LOOP0_ASSERT
#define LOOP1_ASSERT BSLS_BSLTESTUTIL_LOOP1_ASSERT
#define LOOP2_ASSERT BSLS_BSLTESTUTIL_LOOP2_ASSERT
#define LOOP3_ASSERT BSLS_BSLTESTUTIL_LOOP3_ASSERT
#define LOOP4_ASSERT BSLS_BSLTESTUTIL_LOOP4_ASSERT
#define LOOP5_ASSERT BSLS_BSLTESTUTIL_LOOP5_ASSERT
#define LOOP6_ASSERT BSLS_BSLTESTUTIL_LOOP6_ASSERT
#define ASSERTV BSLS_BSLTESTUTIL_ASSERTV

#define Q BSLS_BSLTESTUTIL_Q // Quote identifier literally.
#define P BSLS_BSLTESTUTIL_P // Print identifier and value.
#define P_ BSLS_BSLTESTUTIL_P_ // P(X) without '\n'.
#define T_ BSLS_BSLTESTUTIL_T_ // Print a tab (w/o newline).
#define L_ BSLS_BSLTESTUTIL_L_ // current Line number

//=============================================================================
// GLOBAL TYPEDEFS/CONSTANTS FOR TESTING
Expand Down Expand Up @@ -225,7 +238,7 @@ int main(int argc, char *argv[])
// - sizeof(Buff) - SIZE < ALIGNMENT
//
// Testing:
// Class Invariants
// CLASS INVARIANTS
// --------------------------------------------------------------------

if (verbose) printf("\nTESTING CLASS INVARIANTS"
Expand Down
Loading