Skip to content

Commit 2a30ef6

Browse files
authored
Improve test/other/test_ioctl.c (#19519)
1 parent 973a718 commit 2a30ef6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/other/test_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
int main() {
1515
// CLOEXEC is not supported
1616
assert(ioctl(STDOUT_FILENO, FIOCLEX, NULL) == -1);
17-
assert(errno = EINVAL);
17+
assert(errno == EINVAL);
1818

1919
puts("success");
2020
return 0;

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8971,7 +8971,7 @@ def test_ioctl_window_size(self):
89718971
self.do_other_test('test_ioctl_window_size.cpp')
89728972

89738973
@also_with_wasmfs
8974-
def test_sys_ioctl(self):
8974+
def test_ioctl(self):
89758975
# ioctl requires filesystem
89768976
self.do_other_test('test_ioctl.c', emcc_args=['-sFORCE_FILESYSTEM'])
89778977

0 commit comments

Comments
 (0)