3 #include "tests/main.h"
8 int h1 = open ("sample.txt");
9 int h2 = open ("sample.txt");
11 CHECK ((h1 = open ("sample.txt")) > 1, "open \"sample.txt\" once");
12 CHECK ((h2 = open ("sample.txt")) > 1, "open \"sample.txt\" again");
14 fail ("open() returned %d both times", h1);