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 native-shell statement matches target platform · developing-today/code@10b3b3a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pkgs/id/crates/id-native-shell/tests
    • capability_statement.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pkgs/id/crates/id-native-shell/tests/capability_statement.rs‎

Copy file name to clipboardExpand all lines: pkgs/id/crates/id-native-shell/tests/capability_statement.rs
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ fn statement_is_well_formed_and_names_the_contract() {
8383
let contract = contract();
8484
assert_eq!(statement["statement"], json!("shell-capability-statement"));
8585
assert_eq!(statement["shell"], json!("id-native-shell"));
86-
assert_eq!(statement["platform"], json!("linux-desktop"));
86+
// Oracle: the recorded capability statement names the desktop target
87+
// whose binary and checks are being built.
88+
let expected_platform = if cfg!(target_os = "macos") {
89+
"macos-desktop"
90+
} else {
91+
"linux-desktop"
92+
};
93+
assert_eq!(statement["platform"], json!(expected_platform));
8794
assert_eq!(
8895
statement["contract"]["name"], contract["contract"],
8996
"statement must name the contract it is a statement against"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.