GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: numeric flags to fs.open · nodejs/node@804cc76

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-open-numeric-flags.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-open-numeric-flags.js‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use strict';
2+
const common = require('../common');
3+
4+
const constants = require('constants');
5+
const assert = require('assert');
6+
const fs = require('fs');
7+
const path = require('path');
8+
9+
common.refreshTmpDir();
10+
11+
// O_WRONLY without O_CREAT shall fail with ENOENT
12+
const pathNE = path.join(common.tmpDir, 'file-should-not-exist');
13+
assert.throws(
14+
() => fs.openSync(pathNE, constants.O_WRONLY),
15+
(e) => e.code === 'ENOENT'
16+
);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.