- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 167 for tmpfiles (0.33 sec)
-
bin/retry.sh
else return 1 fi } function retry { local tmpFile tmpFile=$(mktemp) trap 'rm -f "${tmpFile}"' EXIT local failureRegex="$1" shift local n=1 local max=5 while true; do unset SHELL # Don't let environment control which shell to use if isatty; then if [ "$(uname)" == "Darwin" ]; then script -q -r "${tmpFile}" "${*}" else
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 11 16:08:08 UTC 2021 - 2K bytes - Viewed (0) -
pkg/config/analysis/local/analyze_test.go
t.Helper() tmpfile, err := os.CreateTemp("", "") if err != nil { t.Fatal(err) } _, err = tmpfile.WriteString(content) if err != nil { t.Fatal(err) } err = tmpfile.Sync() if err != nil { t.Fatal(err) } _, err = tmpfile.Seek(0, 0) if err != nil { t.Fatal(err) } return tmpfile } func TestIsIstioConfigMap(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 09 07:43:43 UTC 2024 - 9.6K bytes - Viewed (0) -
src/cmd/internal/obj/riscv/asm_test.go
buf := bytes.NewBuffer(make([]byte, 0, 7000000)) genLargeBranch(buf) tmpfile := filepath.Join(dir, "x.s") if err := os.WriteFile(tmpfile, buf.Bytes(), 0644); err != nil { t.Fatalf("Failed to write file: %v", err) } // Assemble generated file. cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-o", filepath.Join(dir, "x.o"), tmpfile) cmd.Env = append(os.Environ(), "GOARCH=riscv64", "GOOS=linux")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 01:50:18 UTC 2023 - 7.9K bytes - Viewed (0) -
src/cmd/internal/obj/arm64/asm_arm64_test.go
gen(buf) tmpfile := filepath.Join(dir, "x.s") err = os.WriteFile(tmpfile, buf.Bytes(), 0644) if err != nil { t.Fatalf("can't write output: %v\n", err) } pattern := `0x0080\s00128\s\(.*\)\tMOVD\t\$3,\sR3` // assemble generated file cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "asm", "-S", "-o", filepath.Join(dir, "test.o"), tmpfile) cmd.Env = append(os.Environ(), "GOOS=linux")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 02:46:11 UTC 2023 - 7.8K bytes - Viewed (0) -
tests/fuzz/analyzer_fuzzer.go
data, err := f.GetBytes() if err != nil { return "nobytes", err } tmpfile, err := os.CreateTemp("", "example") if err != nil { return "nofile", err } if _, err := tmpfile.Write(data); err != nil { return "nofile", err } if err := tmpfile.Close(); err != nil { return "nofile", err } return tmpfile.Name(), nil } // createRandomConfigFiles creates a slice of ReaderSources
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.h
#define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_GCS_HELPER_H_ #include <fstream> #include <string> class TempFile : public std::fstream { public: // We should specify openmode each time we call TempFile. TempFile(const std::string& temp_file_name, std::ios::openmode mode); TempFile(TempFile&& rhs); ~TempFile() override; const std::string getName() const; bool truncate(); private: const std::string name_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 26 14:56:58 UTC 2020 - 1.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultClasspathBuilder.java
File tmpFile = temporaryFileProvider.createTemporaryFile(jarFile.getName(), ".tmp"); try { Files.createDirectories(parentDir.toPath()); inPlaceBuilder.jar(tmpFile, action); Files.move(tmpFile.toPath(), jarFile.toPath(), StandardCopyOption.REPLACE_EXISTING); } finally { Files.deleteIfExists(tmpFile.toPath()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 3.8K bytes - Viewed (0) -
internal/disk/stat_test.go
} for _, testCase := range testCases { testCase := testCase t.Run("", func(t *testing.T) { tmpfile, err := os.CreateTemp("", "testfile") if err != nil { t.Error(err) } tmpfile.WriteString(testCase.stat) tmpfile.Sync() tmpfile.Close() iostats, err := readDriveStats(tmpfile.Name()) if err != nil && !testCase.expectErr { t.Fatalf("unexpected err; %v", err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 3.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
private final File tempFile; private final FileInputStream fileInputStream; public TemporaryFileInputStream(final File tempFile) throws FileNotFoundException { this.tempFile = tempFile; fileInputStream = new FileInputStream(tempFile); } public File getTemporaryFile() { return tempFile; } /* * (non-Javadoc) *
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
err = os.RemoveAll(tmpdir) if err != nil { t.Fatalf("Fail to remove tmpdir: %v", err) } }() tmpfile, err := os.CreateTemp(tmpdir, "") if err != nil { t.Fatalf("Couldn't create tmpfile: %v", err) } if err := tmpfile.Close(); err != nil { t.Fatalf("Couldn't close tmpfile: %v", err) } tests := []struct { name string filename string want bool }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0)