diff options
author | Steven Knight <knight@baldmt.com> | 2005-10-14 16:23:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-10-14 16:23:52 (GMT) |
commit | af962864b108d8fdd654edaf3c0300404ca07e3e (patch) | |
tree | 3a6877e15644a6da25570af9ee7aade000983ad4 /test/LoadableModule.py | |
parent | 82c2f16e53cba1a639d568fe8d6780dfe30c56ab (diff) | |
download | SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.zip SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.gz SCons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.bz2 |
Get rid of indentation tabs in the test scripts and have runtest.py invoke them with the python -tt option to keep them out.
Diffstat (limited to 'test/LoadableModule.py')
-rw-r--r-- | test/LoadableModule.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/LoadableModule.py b/test/LoadableModule.py index f3b1959..5243fbf 100644 --- a/test/LoadableModule.py +++ b/test/LoadableModule.py @@ -60,7 +60,7 @@ test.write('f1.c', r""" void f1(void) { - printf("f1.c\n"); + printf("f1.c\n"); fflush(stdout); } """) @@ -75,19 +75,19 @@ extern int errno; int main(int argc, char *argv[]) { - argv[argc++] = "--"; + argv[argc++] = "--"; void *foo1_shobj = dlopen("__foo1_name__", RTLD_NOW); - if(!foo1_shobj){ - printf("Error loading foo1 '__foo1_name__' library at runtime, exiting.\n"); - printf("%d\n", errno); - perror(""); - return -1; - } - void (*f1)() = dlsym(foo1_shobj, "f1\0"); - (*f1)(); - printf("dlopenprog.c\n"); + if(!foo1_shobj){ + printf("Error loading foo1 '__foo1_name__' library at runtime, exiting.\n"); + printf("%d\n", errno); + perror(""); + return -1; + } + void (*f1)() = dlsym(foo1_shobj, "f1\0"); + (*f1)(); + printf("dlopenprog.c\n"); dlclose(foo1_shobj); - return 0; + return 0; } """ |