diff options
-rw-r--r-- | SCons/cppTests.py | 3 | ||||
-rw-r--r-- | test/Libs/LIBS.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/SCons/cppTests.py b/SCons/cppTests.py index c19046c..99fa6cf 100644 --- a/SCons/cppTests.py +++ b/SCons/cppTests.py @@ -878,10 +878,9 @@ if __name__ == '__main__': for tclass in tclasses: names = unittest.getTestCaseNames(tclass, 'test_') try: - names = list(set(names)) + names = sorted(set(names)) except NameError: pass - names.sort() suite.addTests(list(map(tclass, names))) TestUnit.run(suite) diff --git a/test/Libs/LIBS.py b/test/Libs/LIBS.py index 5639228..04206ac 100644 --- a/test/Libs/LIBS.py +++ b/test/Libs/LIBS.py @@ -97,6 +97,7 @@ test.write('foo5.c', foo_contents) test.write('sl.c', """\ #include <stdio.h> + void sl(void) { @@ -105,7 +106,11 @@ sl(void) """) test.write('slprog.c', """\ +#include <stdlib.h> #include <stdio.h> + +void sl(void); + int main(int argc, char *argv[]) { |