def test_fileno(self):
    create_test_file('empty.txt', '')
    src = '\n      #include <stdio.h>\n      #include <unistd.h>\n      int main()\n      {\n          FILE* fp = fopen("empty.txt", "r");\n          if (fp) {\n              printf("%d\\n", fileno(fp));\n          } else {\n              printf("failed to open empty.txt\\n");\n          }\n          return 0;\n      }\n    '
    self.emcc_args += ['--embed-file', 'empty.txt']
    self.do_run(src, '3\n')
def test_fileno(self):
    create_test_file('empty.txt', )
    src = '\n      #include <stdio.h>\n      #include <unistd.h>\n      int main()\n      {\n          FILE* fp = fopen("empty.txt", "r");\n          if (fp) {\n              printf("%d\\n", fileno(fp));\n          } else {\n              printf("failed to open empty.txt\\n");\n          }\n          return 0;\n      }\n    '
    self.emcc_args += ['--embed-file', 'empty.txt']
    self.do_run(src, '3\n')