summaryrefslogtreecommitdiff
path: root/usertests.c
diff options
context:
space:
mode:
my comment is wrong, exec handles BSS fine
Diffstat (limited to 'usertests.c')
-rw-r--r--usertests.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/usertests.c b/usertests.c
index 77495bf..e62703d 100644
--- a/usertests.c
+++ b/usertests.c
@@ -1419,6 +1419,21 @@ validatetest(void)
printf(stdout, "validate ok\n");
}
+char uninit[10000];
+void
+bsstest(void)
+{
+ int i;
+ printf(stdout, "bss test\n");
+ for(i = 0; i < sizeof(uninit); i++){
+ if(uninit[i] != '\0'){
+ printf(stdout, "bss test failed\n");
+ exit();
+ }
+ }
+ printf(stdout, "bss test ok\n");
+}
+
int
main(int argc, char *argv[])
{
@@ -1430,6 +1445,7 @@ main(int argc, char *argv[])
}
close(open("usertests.ran", O_CREATE));
+ bsstest();
sbrktest();
validatetest();