Skip to content

Commit 5e89621

Browse files
committed
Adjust a test case to avoid modifying read-only data
Since the .rodata section currently resides in the read-only segment of the compiled program, this commit modifies a test case that originally attempted to write to .rodata to avoid such an operation.
1 parent 23712d9 commit 5e89621

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/driver.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,13 +2954,11 @@ int main()
29542954
EOF
29552955

29562956
# global string initialization and modification
2957-
try_output 0 "Hello World!Hallo World!" << EOF
2957+
try_output 0 "Hello World!" << EOF
29582958
char *data = "Hello World!";
29592959
29602960
int main(void)
29612961
{
2962-
printf(data);
2963-
data[1] = 'a';
29642962
printf(data);
29652963
return 0;
29662964
}

0 commit comments

Comments
 (0)